<template>
  <div>
    <div>{{str}}</div>
    <button @click="fn">逆转</button>
  </div>
</template>

<script>
export default {
  data(){
    return {
      str:'Hello World'
    }
  }
  ,methods:{
    fn(){
     this.str= [...this.str].reverse().join('')
    }
  }
}
</script>

<style>

</style>